QuickOPC-UA allows you to obtain information about OPC UA servers from a Local Discovery Server with Multicast Extensions (LDS-ME), which uses the mDNS protocol to exchange the information about OPC UA servers with other LDS-ME-s on the network (or multiple networks).
In .NET, if you want to retrieve a list of OPC Unified Architecture servers available on your network, call the DiscoverNetworkServers method without further parameters. This will obtain the information about servers using the LDS-ME installed on the machine where the component is running, and without further restricting (filtering) them.
Further in .NET, if you want to retrieve a list of OPC Unified Architecture servers available on your network, call the DiscoverNetworkServers method with one or two arguments, passing it
In COM, the DiscoverNetworkServers method has two arguments, and therefore if you want no filtering, pass a null reference (or an empty collection) as the first argument, and pass "localhost" as the second argument if you want to use the LDS-ME installed on your machine.
In all cases described above, you will receive back a UADiscoveryElementCollection object, which is collection of UADiscoveryElement-s. Each element contains a server's discovery URL. The discovery URL is the main piece of information that you can further use if you want to connect to that OPC-UA server. Each UADiscoveryElement contains information gathered about one OPC server found by the discovery process, including things like the server name, application type, and - mainly - its DiscoveryUriString.
You can also obtain the results unflattened:
Note that QuickOPC returns UADiscoveryElementCollection from all OPC UA discovery methods, but the amount of information contained in each returned UADiscoveryElement depends on the discovery approach used. For OPC UA Global Discovery and OPC UA Network Discovery, only following primary properties of each UADiscoveryElement are filled in: